package com.cro.prison.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cro.prison.entity.pojo.ErrorMessage;
import com.cro.prison.entity.vo.AlarmItem;
import com.cro.prison.entity.vo.ErrorCountVo;

import java.util.List;

public interface ErrorMessageService extends IService<ErrorMessage> {

    public List<ErrorMessage> list();

    public List<Integer> SeriousErrList();

    /**
     * 查询违规记录并按日期统计次数
     * @param list
     * @param start
     * @return int[]
     **/
    int[] queryViolationRecords(List<ErrorMessage> list, String start);

    void updateErrorMessage(Long id, String description);

    List<ErrorCountVo> getTotalErrCount();


    //public List<QueryCriteria> listByQuery(QueryCriteria queryCriteria);
}
